package com.power.using.mydaggerp.presenter.gankio;

import android.support.annotation.NonNull;

import com.power.using.mydaggerp.contract.gankio.GankIoMainContract;
import com.power.using.mydaggerp.model.gankio.GankIoMainModel;

/**
 * Created by 聪明一只哈 on 2019/10/14.
 * Time: 2019/10/14  9:16
 */
public class GankIoMainPresenter extends GankIoMainContract.GankIoMainPresenter{

    @NonNull
    public static GankIoMainPresenter newInstance() {
        return new GankIoMainPresenter();
    }


    @Override
    public void getTabList() {

        if(mIView==null||mIModel==null)
            return;

        mIView.showTabList(mIModel.getTabs());

    }

    @Override
    protected GankIoMainContract.IGankIoMainModel getModel() {
        return GankIoMainModel.newInstance();
    }

    @Override
    public void onStart() {

    }
}
